import java.util.*;
public class Main{
    public static void main(String[]args){
        Scanner scan=new Scanner(System.in);
        int a=scan.nextInt();
        int b=scan.nextInt();
        if(a>=b){
            System.out.println(a*b/func(a,b));
        }else{
            System.out.println(a*b/func(b,a));

        }
    }
    public static int func(int a,int b){
        int r;
        while((r=a%b)!=0){
            a=b;
            b=r;
        }
        return b;
    }
}
